apiVersion: v1
kind: Pod
metadata:
  name: database
  labels:
    app: mysql
spec:
  containers:
  - name: mysql-db
    image: mysql
    ports:
    - containerPort: 3306
    env:
    - name: MYSQL_USER
      value: "dbuser"
    - name: MYSQL_PASSWORD
      value: "123"
    - name: MYSQL_DATABASE
      value: "manga_first_db"
    - name: MYSQL_ROOT_PASSWORD
      value: "root"
    volumeMounts:
    - mountPath: /var/lib/mysql
      name: dbvolume
  volumes:
  - name: dbvolume
    emptyDir:
      sizeLimit: 500Mi
